package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IUrgentActivityContract;
import com.clouddot.baipai.model.UrgentActivityModel;
import com.clouddot.baipai.presenter.UrgentActivityPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class UrgentActivityModule {

    private IUrgentActivityContract.IView mView;

    public UrgentActivityModule(IUrgentActivityContract.IView view) {
        mView = view;
    }

    @Provides
    public IUrgentActivityContract.IPresenter providerPresenter() {
        return new UrgentActivityPresenter(mView, new UrgentActivityModel(mView.getContext()));
    }
}
